import request from '@/utils/request'

// 查询商品优惠管理列表
export function listGoods_preferential(query) {
  return request({
    url: '/youxuan/goods_preferential/list',
    method: 'get',
    params: query
  })
}

// 查询商品优惠管理详细
export function getGoods_preferential(id) {
  return request({
    url: '/youxuan/goods_preferential/' + id,
    method: 'get'
  })
}

// 新增商品优惠管理
export function addGoods_preferential(data) {
  return request({
    url: '/youxuan/goods_preferential',
    method: 'post',
    data: data
  })
}

// 修改商品优惠管理
export function updateGoods_preferential(data) {
  return request({
    url: '/youxuan/goods_preferential',
    method: 'put',
    data: data
  })
}

// 删除商品优惠管理
export function delGoods_preferential(data) {
  return request({
    url: '/youxuan/goods_preferential/remove',
    method: 'post',
    data: data
  })
}

// 导出商品优惠管理
export function exportGoods_preferential(query) {
  return request({
    url: '/youxuan/goods_preferential/export',
    method: 'get',
    params: query
  })
}